﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 监理单位/施工单位实体
    /// </summary> 
    [Serializable]
    [ModelMap("PROJECT_UNIT", new string[] { "UNIT_ID" })]
    public class ProjectUnitInfo : BaseEntity
    {
        public ProjectUnitInfo()
        {

        }

        private int _unitId;
        /// <summary>
        /// 单位ID
        /// </summary>
        [ColumnMap("UNIT_ID", System.Data.DbType.Int32)]
        public int UNIT_ID
        {
            get { return _unitId; }
            set
            {
                if (object.Equals(this._unitId, value) != true)
                {
                    this._unitId = value;
                    this.RaisePropertyChanged("UNIT_ID");
                }
            }
        }

        private string _unitName;
        /// <summary>
        /// 单位名称
        /// </summary>
        [ColumnMap("UNIT_NAME", System.Data.DbType.String)]
        public string UNIT_NAME
        {
            get { return _unitName; }
            set
            {
                if (object.Equals(this._unitName, value) != true)
                {
                    this._unitName = value;
                    this.RaisePropertyChanged("UNIT_NAME");
                }
            }
        }

        private string _unitCode;
        /// <summary>
        /// 合同号
        /// </summary>
        [ColumnMap("UNIT_CODE", System.Data.DbType.String)]
        public string UNIT_CODE
        {
            get { return _unitCode; }
            set
            {
                if (object.Equals(this._unitCode, value) != true)
                {
                    this._unitCode = value;
                    this.RaisePropertyChanged("UNIT_CODE");
                }
            }
        }

        private int _unitType;
        /// <summary>
        /// 标段类型(0=监理单位，1=土建，2=路面，3=交安，4=绿化，5=房建，6=机电，7=污水)
        /// </summary>
        [ColumnMap("UNIT_TYPE", System.Data.DbType.Int32)]
        public int UNIT_TYPE
        {
            get { return _unitType; }
            set
            {
                if (object.Equals(this._unitType, value) != true)
                {
                    this._unitType = value;
                    this.RaisePropertyChanged("UNIT_TYPE");
                }
            }
        }

        private bool _unitSel;
        /// <summary>
        /// 是否被选中
        /// </summary>
        [ColumnMap("UNIT_SEL", System.Data.DbType.Boolean)]
        public bool UNIT_SEL
        {
            get { return _unitSel; }
            set
            {
                if (object.Equals(this._unitSel, value) != true)
                {
                    this._unitSel = value;
                    this.RaisePropertyChanged("UNIT_SEL");
                }
            }
        }
    }
}


